﻿$(document).ready(function () {
    $("#uploadify").uploadify({
        'uploader': '/Tools/Uploadify/uploadify.swf',
        'script': '/Handler/Upload.ashx',
        'cancelImg': '/Tools/Uploadify/Images/cancel.png',
        'queueID': 'fileQueue',
        'auto': true,
        'multi': false,
        'fileExt': '*.jpg;*.gif;*.png;*.JPEG;*.BMP;',
        'fileDesc': '图片(*.jpg;*.gif;*.png;*.bmp;)',
        'buttonImg': '/Tools/Uploadify/Images/check.png',
        'wmode': "transparent",
        'width': '81',
        'height': '22',
        'onComplete': function (e, qu, fil, response, data) { $("[id$='img_PicD']").attr('src', "/UploadFiles/Cache/" + response); $("[id$='txt_file']").val(response); }
    });
});